OpenDialog method
Calling this method will present the user with the standard Windows "Open" dialog.
Member of
Runtime
Type
Function(FileName, Filters)
Parameters
- Filename: [Optional] String - Default filename. The dialog will be pre-populated with this value.
- Filters: [Optional] String - Filename filters appear in the drop down box at the bottom of the dialog.
Filters is pipe-delimited list of Display/Pattern pairs, e.g. "Text Files (*.txt)|*.txt|All Files (*.*)|*.*".
Return
- String - The filename selected by the user or empty string, if the user clicks Cancel.
Example
Dest = OpenDialog("output.txt", "Text Files (*.txt)|*.txt")
If Dest <> "" Then
For Each Document in App.ActiveTab.FetchAll
Next
End If
See Also
Macro Object Model
Runtime